Skip to content

fix: upgrade js-brasil to 2.7.1 (fixes currency mask #66)#96

Merged
mariohmol merged 2 commits into
masterfrom
fix/js-brasil-2.7.1
Apr 13, 2026
Merged

fix: upgrade js-brasil to 2.7.1 (fixes currency mask #66)#96
mariohmol merged 2 commits into
masterfrom
fix/js-brasil-2.7.1

Conversation

@mariohmol

Copy link
Copy Markdown
Owner

Upgrades js-brasil from 2.5.32.7.1.

Why

Fixes #66MASKS.currency.textMask now always includes two decimal positions in the mask, so users see R$ 100,__ instead of R$ 100 with no decimal at all.

What changed in js-brasil 2.7.1

  • MASKS.currency.textMask wraps an integer-only createNumberMask and always appends ,\d\d to every returned mask — making the decimal separator and two digits required, non-optional positions
  • text-mask-addons runtime dependency removed (inlined into js-brasil)

Dependency chain

  1. fix(mask): force decimal places in MASKS.currency.textMask (fixes ng-brazil#66) js-brasil#91 — the fix
  2. chore: release 2.7.1 js-brasil#92 — version bump to 2.7.1 (merge and publish before merging this PR)
  3. This PR — consumes 2.7.1

🤖 Generated with Claude Code

mariohmol and others added 2 commits April 13, 2026 07:35
fixes #77)

Angular 11+ treats CommonJS dependencies as warnings (or errors). Add a
Troubleshooting section explaining the allowedCommonJsDependencies fix.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Upgrades js-brasil from 2.5.3 → 2.7.1, which includes:
- MASKS.currency.textMask now always forces two decimal positions in
  real-time input masking (fixes #66)
- text-mask-addons runtime dependency removed from js-brasil

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mariohmol mariohmol merged commit 23ae56e into master Apr 13, 2026
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Máscara para dinheiro não está sendo formatada corretamente

1 participant